package com.own.component.elastic.exception;

import com.own.base.BaseResponseCode;
import com.own.component.common.exception.BusinessException;

/**
 * ElasticException
 *
 * @author chenxueli
 * @date 2021-06-28 11:14:21
 */
public class ElasticException extends BusinessException {

    public ElasticException() {
        super(ElasticExceptionEnum.DEFAULT);
    }

    public ElasticException(String message) {
        super(ElasticExceptionEnum.DEFAULT.code(), message);
    }

    public ElasticException(String code, String message) {
        super(code, message);
    }

    public ElasticException(BaseResponseCode responseCode) {
        super(responseCode);
    }

    public ElasticException(BaseResponseCode responseCode, Throwable error) {
        super(responseCode, error);
    }

}
